
from rest_framework.generics import ListAPIView, CreateAPIView
from rest_framework.viewsets import ModelViewSet



#1, 获取brand
from goods.models import Brand
from meiduo_admin.brand import brand_serializers
from meiduo_admin.my_pagination import MyPageNumberPagination


class BrandModelViewSet(ModelViewSet):
    pagination_class = MyPageNumberPagination
    serializer_class = brand_serializers.BrandSerializers
    queryset = Brand.objects.all()